package com.ziiwee.reduce.rest.auto;

import com.ziiwee.reduce.rest.ResourceService;

import java.util.Collection;

/**
 * @author ziiwee
 * @date 2020/8/18
 */
public interface ResourceMapping {

    ResourceInfo get(String name);

    Collection<ResourceInfo> getAll();

    void register(ResourceInfo resourceInfo);

    void register(ResourceService<?, ?> service);

}
